package com.frontalcode
{
	/*
		Class: ProfiledObject
	
			Convenience class for profiled objects.
	*/
	
	public class ProfiledObject extends FrontalObject
	{
		public function ProfiledObject ( )
		{
			super ( );
		}
		
		internal function pB ( timer : String ) : void
		{
			if ( DocumentManager.getInstance ( ).getObjectOption ( "profile" ) ) Profiler.getInstance ( ).startTimer ( timer );
		}
		
		internal function pE ( timer : String ) : void
		{
			if ( DocumentManager.getInstance ( ).getObjectOption ( "profile" ) ) Profiler.getInstance ( ).stopTimer ( timer );
		}
	}
}	
